<?php
 
class Referrals extends MY_Controller
{
	var $curl = 'referral_requests';
	var $name = 'referral_requests';

	function __construct()
	{
		parent::__construct();
        
        $this->load->model('/public/referral_model');
        
		$this->validation->set_fields($this->referral_model->fields);

		$this->data['Title'] = T_('My Referral Requests');
		
    }
	
	function index()
	{		
		$config = array('per_page' => 2);
		$this->referral_model->search('M12345', $config);
		
		$this->renderLayout();
    }
}

?>